# pets/forms.py
from django import forms
from .models import AdoptionApplication

class AdoptionApplicationForm(forms.ModelForm):
    class Meta:
        model = AdoptionApplication
        fields = ['phone', 'address', 'reason']
        widgets = {
            'phone': forms.TextInput(attrs={'class': 'form-control'}),
            'address': forms.TextInput(attrs={'class': 'form-control'}),
            'reason': forms.Textarea(attrs={'class': 'form-control', 'rows': 5}),
        }
        labels = {
            'phone': '联系电话',
            'address': '居住地址',
            'reason': '领养理由（请说明饲养条件、时间等）',
        }